<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>修改资产</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<%@ include file="/html/custom/header.jsp"%>

		<link type="text/css" href="<%=basePath%>/html/css/gm/asset.css"
			rel="stylesheet" />
		<style>
.ast-form {
	border: 0;
}
</style>
		<script type="text/javascript"
			src="<%=basePath%>html/js/swss.asset.mod.js"></script>
	</head>
	<body>
		<div id="content">
			<div class="ast">
				<form id="astForm" action="/swss/assetcar/ast_modAsset.action"
					method="post" enctype="multipart/form-data" target="_top">
					<div class="ast-form ">
						<div class="clearfix">
							<div class="panel left">
								<table>
									<tr>
										<td>国标类号
											<span class="not-null">*</span>
											<input name="asset.id" type="hidden"
												value="<s:property value="#request.asset.id" />" />
											<input id="astNo" type="hidden"  value="<s:property value="#request.asset.astNo" />" />
											<input name="stamp" type="hidden" 
												value="<s:property value="#request.stamp" />" />
										</td>
										<td>
											<input id="gbCode" type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.gbClassNo"
												data-gbCode="<s:property value="#request.asset.gbClassNo.trim()" />"
												value="<s:property value="#request.asset.gbClassNo.trim()" />" />
												 <input id="astClass" type="hidden" name="asset.astClass" value="<s:property value="#request.asset.astClass" />" />
										</td>
									</tr>
									<tr>
										<td>
											车辆名称
											<span class="not-null">*</span>
										</td>
										<td>
											<input id="txtAstName" type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.astName"
												value="<s:property value="#request.asset.astName" />" />
										</td>
									</tr>
									<tr>
										<td>
											数 &nbsp;&nbsp;&nbsp;&nbsp; 量
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.astCount"
												value="<s:property value="#request.asset.astCount" />" />
										</td>
									</tr>
									<tr>
										<td>
											单&nbsp;&nbsp;&nbsp;&nbsp; 价
											<span class="not-null">*</span>
										</td>
										<td>
											<input id="txtPrice" type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.price"
												value="<s:property value="#request.asset.price" />" />
										</td>
									</tr>
									<tr>
										<td>
											购置日期
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text" id="buyDate"
												class="ui-widget-content ui-corner-all txt"
												name="asset.buyDate" readonly="readonly"
												value="<s:date name="#request.asset.buyDate"   format="yyyy-MM-dd"  />" />
										</td>
									</tr>
									<tr>
										<td>
											厂 &nbsp;&nbsp;&nbsp;&nbsp;牌
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.brand" value="<s:property value="#request.asset.brand" />" />
										</td>
									</tr>
									<tr>
										<td>
											型号规格
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.modelNo"
												value="<s:property value="#request.asset.modelNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											存放地点
											<span class="not-null">*</span>
										</td>
										<td>
											<input id="txtStorage" type="text"
												class="ui-widget-content ui-corner-all txt" value="(<s:property value="#request.asset.cfddNo" />)<s:property value="#request.asset.cfddName" /> "/>
											<input id="txtCfddNo" type="hidden" name="asset.cfddNo"
												value="<s:property value="#request.asset.cfddNo" />" />
											<input id="txtCfddName" type="hidden" name="asset.cfddName"
												value="<s:property value="#request.asset.cfddName" />" />
										</td>
									</tr>
									<tr>
										<td>
											颜&nbsp;&nbsp;&nbsp;&nbsp;色
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.color" value="<s:property value="#request.asset.color" />" />
										</td>
									</tr>
									<tr>
										<td>
											排&nbsp;气&nbsp;量
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.exhstValue" value="<s:property value="#request.asset.exhstValue" />" />
										</td>
									</tr>
									<tr>
										<td>
											行驶里程
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.tralValue" value="<s:property value="#request.asset.tralValue" />" />
										</td>
									</tr>
									<tr>
										<td>
											厂 &nbsp;&nbsp;&nbsp;&nbsp;家
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.factoryName"
												value="<s:property value="#request.asset.factoryName" />" />
										</td>
									</tr>
									<tr>
										<td>
											供 货 商
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.suplierName"
												value="<s:property value="#request.asset.suplierName" />" />
										</td>
									</tr>
									
									<tr>
										<td>
											折旧方式
										</td>
										<td>
											<select name="asset.zjfs">
												<s:iterator value="#request.zjfsList">
													<option value="<s:property value="fieldName4" />"
														<s:if test="asset.zjfs==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>
									<tr>
										<td>
											使用年限
										</td>
										<td>
											<input id="txtUseYear" type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.useYear"
												value="<s:property value="#request.asset.useYear" />" />
										</td>
									</tr>

								</table>
							</div>
							<div class="panel right">
								<table>
									<tr>
										<td>
											单位名称
											<span class="not-null">*</span>
										</td>
										<td>
											<input id="deptName" type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.deptNo"
												data-deptNo="<s:property value="#request.asset.deptNo.trim()" />"
												value="(<s:property value="#request.asset.deptNo.trim()" />)<s:property value="#request.asset.dept.deptName" />" />
										</td>
									</tr>
									<tr>
										<td>
											领 用 人
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.collarName"
												value="<s:property value="#request.asset.collarName" />" />
										</td>
									</tr>
									<tr>
										<td>
											经 手 人
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.handName"
												value="<s:property value="#request.asset.handName" />" />
										</td>
									</tr>
									<tr>
										<td>
											单 据 号
										</td>
										<td>
											<input id="danJuNo" type="text" readonly
												class="ui-widget-content ui-corner-all txt"
												name="asset.danJuNo"
												value="<s:property value="#request.asset.danJuNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											编号范围
										</td>
										<td>
											<input type="text" readonly
												class="ui-widget-content ui-corner-all txt"
												name="asset.astNoRange" value="<s:property value="#request.asset.astNoRange" />" />
										</td>
									</tr>
									<tr>
										<td>
											联系电话
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.telephoneNo"
												value="<s:property value="#request.asset.telephoneNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											车&nbsp;架&nbsp;号
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.frameNo" value="<s:property value="#request.asset.frameNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											发动机号
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.engineNo" value="<s:property value="#request.asset.engineNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											车&nbsp;牌&nbsp;号
											<span class="not-null">*</span>
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.cardNo" value="<s:property value="#request.asset.cardNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											核销科室
											<span class="not-null">*</span>
										</td>
										<td>
											<select name="asset.finDeptName">
												<s:iterator value="#request.chargeOffDeptList">
													<option value="<s:property value="fieldName4" />"
														<s:if test="asset.finDeptName==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>
									<tr>
										<td>
											车辆编制
											<span class="not-null">*</span>
										</td>
										<td>
											<select name="asset.clbz">
											   <option value="">
													不分
												</option>
												<s:iterator value="#request.clbzList">
													<option value="<s:property value="fieldName4" />"
														<s:if test="asset.clbz==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>
									<tr>
										<td>
											现&nbsp;&nbsp;&nbsp;&nbsp; 状
										</td>
										<td>
											<select name="asset.xz">
												<option value="">
													不分
												</option>
												<s:iterator value="#request.nowStatusList">
													<option value="<s:property value="fieldName4" />"
														<s:if test="asset.xz==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>
									<tr>
										<td>
											使用方向
										</td>
										<td>
											<select name="asset.syfx">
												<option value="">
													不分
												</option>
												<s:iterator value="#request.useDirList">
													<option value="<s:property value="fieldName4" />"
														<s:if test="asset.syfx==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>
									<tr>
										<td>
											车辆来源
										</td>
										<td>
											<select name="asset.zcly">
												<option value="">
													不分
												</option>
												<s:iterator value="#request.astSourceList">

													<option value="<s:property value="fieldName4" />"
														<s:if test="asset.zcly==fieldName4">selected='selected'</s:if>>
														<s:property value="txt" />
													</option>
												</s:iterator>
											</select>
										</td>
									</tr>

									<!-- 
								<tr>
									<td>
										经费来源
									</td>
									<td>
										<select name="">
											<s:iterator value="#request.fundSubList">
												<option value="<s:property value="fieldName4" />">
													<s:property value="txt" />
												</option>
											</s:iterator>
										</select>
									</td>
								</tr>
								 -->
									<tr>
										<td>
											备 &nbsp;&nbsp;&nbsp;&nbsp;注
										</td>
										<td>
											<textarea rows="3" cols="" name="asset.remarks"
												class="ui-widget-content ui-corner-all txt"  ><s:property value="#request.asset.remarks" /></textarea>
										</td>
									</tr>
								</table>
							</div>
						</div>
						<div class="btns-line">
							<a href="#" id="btnShow" class="btn-show"> </a>
						</div>
						<div id="pnlExpand" class="pnl-btm clearfix">
							<div class="panel left">
								<table>
								 <tr>
										<td>
											发票图片
											<span class="not-null">*</span>
										</td>
										<td>
											<div class="pic-list clearfix">
												<dl>
													<dt>
														<a target="_blank" href="/swss<s:property value="asset.picUrl2" />"> <img
																src="/swss<s:property value="asset.picUrl2" />" /> </a>
													</dt>
													<dd>
																&nbsp;
												    </dd>
												</dl>
											</div>
											<div>
												<input type="file"
													class="ui-widget-content ui-corner-all txt" name="bill" />
											</div>

										</td>
									</tr>
									
									<tr>
										<td>
											出 厂 号
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.delyNo"
												value="<s:property value="#request.asset.delyNo" />" />
										</td>
									</tr>
									<tr>
										<td>
											出厂日期
										</td>
										<td>
											<input type="text" id="delyDate"
												class="ui-widget-content ui-corner-all txt"
												name="asset.delyDate"
												value="<s:date name="#request.asset.delyDate"   format="yyyy-MM-dd"  />" />
										</td>
									</tr>
									<tr>
										<td>
											保修期限
										</td>
										<td>
											<input type="text" id="storeDate"
												class="ui-widget-content ui-corner-all txt"
												name="asset.storeDate"
												value="<s:date name="#request.asset.storeDate"   format="yyyy-MM-dd"  />" />
										</td>
									</tr>
									<tr>
										<td>
											<s:iterator value="#request.byglList">
												<s:if test="oldField.trim()=='数字字段3'">
													<s:property value="newField.trim()" />
												</s:if>
											</s:iterator>
										</td>
										<td>
											<input type="text" name="asset.numField3"
												class="ui-widget-content u-corner-all txt"
												value="<s:property value="#request.asset.numField3" />" />
										</td>
									</tr>
									<tr>
										<td>
											<s:iterator value="#request.byglList">
												<s:if test="oldField.trim()=='数字字段4'">
													<s:property value="newField.trim()" />
												</s:if>
											</s:iterator>
										</td>
										<td>
											<input type="text" name="asset.numField4"
												class="ui-widget-content u-corner-all txt"
												value="<s:property value="#request.asset.numField4" />" />
										</td>
									</tr>
								</table>
							</div>
							<div class="panel right">
								<table>
								    <tr>
										<td>
											资产图片
											<span class="not-null">*</span>
										</td>
										<td id="tdPic" >
											<div id="picList" class="pic-list clearfix">

												<s:generator separator="," val="asset.picUrl1">
													<s:iterator>
														<dl>
															<dt>
																<a target="_blank" href="/swss<s:property />"> <img
																		src="/swss<s:property />" /> </a>
															</dt>
															<dd>
																<a href="#">删除</a>
															</dd>
														</dl>
													</s:iterator>
												</s:generator>
											</div>
											<input id="oldPicUrl" type="hidden" name="asset.picUrl1" value="<s:property value="asset.picUrl1" />" />
											<input id="delPicUrl" type="hidden" name="delPic" />
											<span class="pic-box"><input type="file"
													class="ui-widget-content ui-corner-all txt" name="pic" /><a
												id="addFile" href="#">新增</a> </span>
										</td>
									</tr>
									<tr>
										<td>
											计量单位
										</td>
										<td>
											<input id="txtJlUnit" type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.jlUnit"
												value="<s:property value="#request.asset.jlUnit" />" />
										</td>
									</tr>
									<tr>
										<td>
											国&nbsp;&nbsp;&nbsp;&nbsp;别
										</td>
										<td>
											<input id="nationCode" type="text"
												class="ui-widget-content ui-corner-all txt"
												value="(<s:property value="#request.asset.gbNo" />)<s:property value="#request.asset.gbName" />" />
											<input id="txtGBNo" type="hidden" name="asset.gbNo"
												value="<s:property value="#request.asset.gbNo" />" />
											<input id="txtGBName" type="hidden" name="asset.gbName"
												value="<s:property value="#request.asset.gbName" />" />
										</td>
									</tr>
									<tr>
										<td>
											外&nbsp;&nbsp;&nbsp;&nbsp; 币
										</td>
										<td>
											<input type="text"
												class="ui-widget-content ui-corner-all txt"
												name="asset.wprice" value="<s:property value="#request.asset.wprice" />" />
										</td>
									</tr>
									<tr>
										<td>
											<s:iterator value="#request.byglList">
												<s:if test="oldField.trim()=='字符字段3'">
													<s:property value="newField.trim()" />
												</s:if>
											</s:iterator>
										</td>
										<td>
											<input type="text" name="asset.charField3"
												class="ui-widget-content u-corner-all txt"
												value="<s:property value="#request.asset.charField3" />" />
										</td>
									</tr>
									<tr>
										<td>
											<s:iterator value="#request.byglList">
												<s:if test="oldField.trim()=='字符字段4'">
													<s:property value="newField.trim()" />
												</s:if>
											</s:iterator>
										</td>
										<td>
											<input type="text" name="asset.charField4"
												class="ui-widget-content u-corner-all txt"
												value="<s:property value="#request.asset.charField4" />" />
										</td>
									</tr>
								</table>

							</div>
						</div>
						<div class="ast-foot">
							<input class="btnAst" type="submit" value="保存修改" />
						</div>
					</div>

				</form>
			</div>
		</div>
		    <div id="loading"></div>
			<div id="mask"></div>
			<div id="msg"></div>
		<%@ include file="/html/custom/footer.jsp"%>
	</body>
</html>
